package com.example.douyin.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.example.lib_base_mvvm.entity.User;

@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertUser(User user);
    @Update
    void updateUser(User user);
    @Query("select * from user_money where username=:name")
    User queryByName(String name);
}
